<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/08/18 0018
 * Time: 16:46:51
 */
namespace app\common\Validate;
use think\Validate;

class Market extends Validate{
    protected $rule=[
        'm_name'=>['require','unique:market','max:50','min:2'],
    ];
    protected $message=[
        'm_name.unique'   => '名称已存在！',
        'm_name.require'   => '名称必须填写！',
    ];

}